package zhongbo.java.air.dictionary.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhongbo.java.air.dictionary.model.enums.Change;

import javax.validation.constraints.NotBlank;
import java.sql.Date;

@ApiModel("机场表")
@TableName("air_airport")
@Data
public class AirPort {
    @TableId(type = IdType.ASSIGN_UUID)
    @NotBlank
    private String id;//UUID 主键
    @ApiModelProperty("ICAO机场代码（如 ZBAA）")
    @NotBlank
    private String icaoCode;
    @ApiModelProperty("IATA代码（如 PEK）")
    @NotBlank
    private String iataCode;
    @ApiModelProperty("机场全称")
    @NotBlank
    private String name;

    @ApiModelProperty("纬度（WGS84坐标系，小数点后6位）")
    private Double latitude;
    @ApiModelProperty("经度（WGS84坐标系，小数点后6位）")
    private Double longitude;

    @ApiModelProperty("状态（枚举值：OPERATIONAL-运行中, CLOSED-已关闭, RESTRICTED-限制运行）")
    private Change status;
    @ApiModelProperty("时区（如 Asia/Shanghai）")
    @NotBlank
    private String timezone;

    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;


}
